from django.conf.urls import patterns, url

urlpatterns = patterns('apps.data.views',
    url(r'^$', 'show_data'),
    url(r'^download/$', 'show_data'),
    url(r'^download/(?P<instrument>\w+)/$', 'show_data'),
    url(r'^download/(?P<instrument>\w+)/(?P<datatype>\w+)/$', 'show_data'),
    url(r'^download/(?P<instrument>\w+)/(?P<datatype>\w+)/add/$', 'add_data'),
    url(r'^realtime/$', 'realtime'),
    url(r'^realtime/(?P<datatype>\w+)/$', 'realtime'),
    url(r'^instruments/magnetometer/plot.png$', 'plot_mag'),
    url(r'^products/deltaH/plot.png$', 'plot_delta'),
    url(r'^update/(?P<instrument>\w+)/(?P<code>\w+)/(?P<datatype>\w+)/$', 'update'),
)
